package com.express.dto;

import lombok.Data;
import org.apache.ibatis.annotations.Insert;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class Query100ByPhoneOrderDto extends Query100OrderDto{


    @NotBlank(message = "手机号不能为空" ,groups = {Insert.class})
    @Length(min = 11, max = 11, message = "手机号只能为11位")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号码格式错误")
    private String phone;

    private Integer type;
    private Integer size;
    private String appointNo;

}
